<?php

namespace App\Http\Resources\funds;


use Illuminate\Http\Resources\Json\ResourceCollection;

class RechargeCollection extends ResourceCollection
{
    /**
     * Transform the resource collection into an array.
     *
     * @return \Illuminate\Support\Collection
     */
    public function toArray($request)
    {

        return $this->collection->map(function ($item) {
            return [
                'id'           => $item->id,
                'price'        => $item->price,
                'money'        => $item->money,
            ];
        });

    }
}
